/*
 * BadTaskTransitionLogicException.java
 *
 * Created on July 19, 2002, 12:33 PM
 * @author  darrell
 */

package taskmaster.util.exception;

import taskmaster.job.TaskToChange;

public class TaskStatusSyncException extends Exception {
	private TaskToChange[] syncErrorInHere = null;
	
	/** a vector of Tasks that cannot have their state changed to the valid state because of the transitions table */
	public TaskStatusSyncException(TaskToChange[] syncErrorInHere) {
		this.syncErrorInHere = syncErrorInHere;
	}
	public TaskToChange[] getOutOfSync() {
		return this.syncErrorInHere;
	}
	/**
	 * Creates a new instance of <code>BadTaskTransitionLogicException</code> without detail message.
	 * DONT USE
	 */
	public TaskStatusSyncException() {
		this.syncErrorInHere = new TaskToChange[0];
	}
	/**
	 * Constructs an instance of <code>BadTaskTransitionLogicException</code> with the specified detail message.
	 * @param msg the detail message.
	 * DONT USE
	 */
	public TaskStatusSyncException(String msg) {
		super(msg);
		this.syncErrorInHere = new TaskToChange[0];
	}
}
